<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">项目分类</label>
            <div class="layui-input-block">
                <select name="type_id" lay-verify="required" data-select="{:url('project.cate/index')}"
                        data-fields="id,title" data-value="{$row.cate_id|default=''}">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" placeholder="请输入标题"
                       value="{$row.title|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">需求情况</label>
            <div class="layui-input-block">
                <textarea name="describe" class="layui-textarea" placeholder="请输入需求情况">{$row.describe}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">图片 以 | 做分割符号</label>
            <div class="layui-input-block layuimini-upload">
                <input name="images" class="layui-input layui-col-xs6" placeholder="请上传图片 以 | 做分割符号"
                       value="{$row.images|default=''}">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="images" data-upload-number="more"
                             data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image" data-upload-sign=""><i
                            class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_images" data-upload-select="images"
                             data-upload-number="more" data-upload-mimetype="image/*" data-upload-sign=""><i
                            class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">需求联系人</label>
            <div class="layui-input-block">
                <input type="text" name="contact" class="layui-input" placeholder="请输入需求联系人"
                       value="{$row.contact|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系电话</label>
            <div class="layui-input-block">
                <input type="text" name="mobile" class="layui-input" placeholder="请输入联系电话"
                       value="{$row.mobile|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">村名</label>
            <div class="layui-input-block">
                <select name="village_id" lay-verify="required" data-select="{:url('system.village/index')}"
                        data-fields="id,name" data-value="{$row.village_id|default=''}">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">详细地址</label>
            <div class="layui-input-block">
                <input type="text" name="address" class="layui-input" placeholder="请输入详细地址"
                       value="{$row.address|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">点赞量</label>
            <div class="layui-input-block">
                <input type="text" name="likes" class="layui-input" placeholder="请输入点赞量"
                       value="{$row.likes|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">浏览量</label>
            <div class="layui-input-block">
                <input type="text" name="hits" class="layui-input" placeholder="请输入浏览量"
                       value="{$row.hits|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">审批状态</label>
            <div class="layui-input-block">
                <select name="approve_status" lay-verify="required" >
                    <option value="">请选择项目状态</option>
                    {foreach $approveStatus as $k=>$v}
                    <option value='{$k}' {if $row.approve_status== $k} selected {/if} >{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="number" name="sort" class="layui-input" lay-affix="number" placeholder="请输入排序"
                       value="{$row.sort|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">推荐状态</label>
            <div class="layui-input-block">

                <input type="radio" name="is_recommend" value="1" title="不推荐" if $row.is_recommend== 1} checked {/if}></input>
                <input type="radio" name="is_recommend" value="2" title="推荐" {if $row.is_recommend== 2} checked
                       {/if}></input>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">项目状态</label>
            <div class="layui-input-block">
                <select name="project_status" lay-verify="required" >
                    <option value="">请选择项目状态</option>
                    {foreach $projectStatus as $k=>$v}
                    <option value='{$k}' {if $row.project_status== $k} selected {/if}>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注说明</label>
            <div class="layui-input-block">
                <textarea name="remark" class="layui-textarea"
                          placeholder="请输入备注说明">{$row.remark|raw|default=''}</textarea>
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>
    </form>
</div>